<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<JugglingMvc.Models.Jugglers.JugglersDetailsModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Details</h2>
    <fieldset>
        <legend>Fields</legend>
        <p>
            Id:
            <%= Html.Encode(Model.Juggler.Id) %>
        </p>
        <p>
            Name:
            <%= Html.Encode(Model.Juggler.Name)%>
        </p>
        <p>
            Specialty:
            <%= Html.Encode(Model.Juggler.Specialty.Name)%>
        </p>
        <p>
            WebPage:
            <%= Html.Encode(Model.Juggler.WebPage) %>
        </p>
        <p>
            BornDay:
            <%= Model.Juggler.BornDay.HasValue? Model.Juggler.BornDay.Value.ToShortDateString():"" %>
        </p>
        <p>
            Team:
            <%if (Model.Juggler.Team == null)
              { %>
            None
            <%}
              else
              {%><% =Model.Juggler.Team.Name%><%} %>
        </p>
    </fieldset>
    <p>
        <%= Html.ActionLink("Edit Juggler", "Edit", new { id = Model.Juggler.Id })%>
        |
        <%= Html.ActionLink("Delete Juggler", "Delete", new { id = Model.Juggler.Id })%>
        |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>
</asp:Content>
